package com.heu.blood.match.vo;

import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Data
public class BloodInventoryResultVo {
    private List<BloodInventoryBlock> quantityList;
    private List<BloodInventoryBlock> bagList;

    @Data
    public static class BloodInventoryBlock {
        private String bloodType;
        private List<BloodInventorySpecRow> specRows;
        //private List<RhGroupRow> subtotal;
        private Map<String, Integer> subtotal;
        private BigDecimal amount;
        private Integer componentSubtotal;
    }

    @Data
    public static class BloodInventorySpecRow {
        private BigDecimal spec;
        private List<RhGroupRow> rhList;
//        private BigDecimal amount;
//        private Integer componentSubtotal;
    }

    @Data
    public static class RhGroupRow {
        private String rh;
        private Map<String, Integer> quantity;
//        private Map<String, BigDecimal> amount; // A/B/O/AB金额
        private BigDecimal amount;
        private Integer componentSubtotal;
    }
}